Socket
Socket
Sign inDemoInstall

ultramarked

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ultramarked

Marked with built-in syntax highlighting and input sanitizing that doesn't encode all HTML


Version published
Weekly downloads
21
increased by5%
Maintainers
1
Weekly downloads
 
Created
Source

ultramarked

Marked with built-in syntax highlighting and input sanitizing that doesn't encode all HTML.

Ultramarked wraps around marked, so it's essentially Marked, with a few extra options.

Fetch

$ npm install ultramarked --save

Use

var marked = require('ultramarked');

marked.setOptions({
    // your options go here
});

marked('This is **awesome**!');

Configure

options.ultralight

Syntax highlighting powered by highlight.js, no extra magic. Classes are prefixed hljs for convenience. Note that the renderer you choose will be overridden.

options.ultrasanitize

As of right now, Marked encodes all HTML input when sanitize = true. Set this option to true to use the AngularJS Sanitizer sanitizer, tweaked to disallow script and style tags.

options.terminal

Prettifies the code for terminal output! Incompatible with ultralight, which will be disabled when terminal is enabled. Also turns off ultralight, because color codes.

terminal.png

options.ultrasanitize_pagedown

Angular's sanitizer option might be too lenient for you. If that's the case, you can use PageDown's white-list instead, which is much more narrow, and doesn't allow setting class attributes, for example.

FAQs

Package last updated on 18 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc